import pickle
import os
def pkl_load(f_path):
    with open(f_path,'rb') as f:
        return pickle.load(f)

def pkl_save(data,pkl_path):
    with open(pkl_path,'wb') as f:
        pickle.dump(data,f)

def ensure_dir(path):
    if not os.path.exists(path):
        os.makedirs(path)